package com.mjkj.demo;

import cn.dev33.satoken.SaManager;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author 77018
 */
@EnableScheduling
@EnableAsync
@SpringBootApplication
@Slf4j
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(DemoApplication.class, args);

        System.out.println(111);
        log.info("启动成功: {}", run);

        log.info("sa_token配置: {}", SaManager.getConfig());

        log.info("API document: {}", "http://127.0.0.1:8080/manga/doc.html");
    }

}
